#!/bin/bash
#$ -V
#$ -cwd
#$ -N PAPI_MMM #Replace with your job name
#$ -j y
#$ -o $JOB_NAME.o$JOB_ID
#$ -pe 2way 8
#$ -q development #queue name - do not change this
#$ -l h_rt=00:59:00 #specifies resource limits - in this case, the maximum amount of time for which your job can run
#$ -M benryyip@mail.utexas.edu #Replace with your email id
#$ -A CS378-Spring_2008  #Project Name - Do not change this
#$ -P hpc #Project Type - Do not change this

inc=25

for i in {0..64}
#for i in {0..5}
do
    if [ $i -eq 0 ]
    then
        ./a.out 1 ijk
        ./a.out 1 jik
        ./a.out 1 jki
        ./a.out 1 kji
        ./a.out 1 ikj
        ./a.out 1 kij
    else
        size=$(($i*$inc))
        ./a.out $size ijk
        ./a.out $size jik
        ./a.out $size jki
        ./a.out $size kji
        ./a.out $size ikj
        ./a.out $size kij
    fi
done
